#ifndef __HIKARI_RANDOMACCESS_FILE__
#define __HIKARI_RANDOMACCESS_FILE__

#include <stdio.h>
#include <iostream>
#include "utf8.h"

using namespace std;
class RandomFileAccess
{
private:
	std::string path;
	
public:
	FILE*file;
	RandomFileAccess(const char*filePath);
	bool openFileWorReading();
	~RandomFileAccess();
	bool readBool();
	unsigned short readShort();
	float readFloat();
	double readDouble();
	unsigned char readByte();
	wchar_t readChar();
	int readInt();
	long long readLong();
	wstring readString();
	int seek(unsigned long position);
	void close();
};


#endif